package com.example.mapper;

import com.example.entity.Information;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface InformationMapper {
    @Insert("insert into information (admin_id, title, content,creat_time) values (#{adminId},#{title}, #{content}, #{creatTime})")
    void insert(Information information);

    List<Information> selectAll(Information information);

    void updateById(Information information);

    @Delete("delete from information where id = #{id}")
    void deleteById(Integer id);
}
